package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import lombok.Data;

@TableName("productInfo")
@Data
public class ProductInfo {
    //@TableId//设置主键
    @MppMultiId//设置主键
    private Integer comId;
    //proname 是产品名称

    private String proName;
    private double weight;
    private String proBrith;
    private String expiration;
    private String note;
    @MppMultiId
    private Integer tenantId;

    public ProductInfo(Integer comId, String proName, double weight, String proBrith, String expiration, String note,int tenantId) {
        this.comId = comId;
        this.proName = proName;
        this.weight = weight;
        this.proBrith = proBrith;
        this.expiration = expiration;
        this.note = note;
        this.tenantId=tenantId;
    }

    public ProductInfo() {

    }



    public Integer getComId() {
        return comId;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getProBrith() {
        return proBrith;
    }

    public void setProBrith(String proBrith) {
        this.proBrith = proBrith;
    }

    public String getExpiration() {
        return expiration;
    }

    public void setExpiration(String expiration) {
        this.expiration = expiration;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
